new MVC.Test.Controller('menu',{
	setup : function(){
		this.Contextmenu('#/menu');
		this.next();
	},
	test_new_file: function(){
		this.MenuNew_fileClick()
		this.next();
	},
	check_file : function(){
		this.assert_equal(1, MVC.$E('/menu').next().childNodes.length )
	},
	test_new_folder:function(){
		this.MenuNew_folderClick()
		this.next();
	},
	check_folder : function(){
		this.assert_equal(3, MVC.$E('/menu').next().childNodes.length )
	},
	test_delete_file : function(){
		this.Contextmenu(MVC.$E('/menu/untitled.html'));
		this.next();
	},
	deletefile : function(){
		this.MenuDeleteClick();
		this.next(null, 1);
	},
	check_delete_file : function(){
		this.assert_null(MVC.$E('/menu/untitled.html'));
	},
	test_delete_folder : function(){
		this.Contextmenu(MVC.$E('/menu/untitled'));
		this.next();
	},
	deletefolder : function(){
		this.MenuDeleteClick();
		this.next(null, 1);
	},
	check_delete_folder : function(){
		this.assert_null(MVC.$E('/menu/untitled'));
	},
	teardown: function(){
		//this.Click(MVC.$E('/demo'))
	}
})